package com.len.controller;

import com.len.base.BaseController;
import com.len.entity.SpDeploy;
import com.len.service.SpDeployService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

@Controller
@RequestMapping("deploy")
public class SpDeployController extends BaseController<SpDeploy> {
    @Autowired
    private SpDeployService spDeployService;
    @RequestMapping("/show")
    public String show(SpDeploy spDeploy){
        try {
            spDeployService.selectByPrimaryKey(spDeploy);
        }catch (Exception e){
            e.printStackTrace();
        }
        return null;
    }
    @RequestMapping("/save")
    public String save(SpDeploy spDeploy){
        try {
            spDeployService.insert(spDeploy);
        }catch (Exception e){
            e.printStackTrace();
        }
        return null;
    }

    @RequestMapping("/update")
    public String update(SpDeploy spDeploy){
        try {
            spDeployService.updateByPrimaryKey(spDeploy);
        }catch (Exception e){
            e.printStackTrace();
        }
        return null;
    }
}
